package interview;

import org.junit.Test;

public class xx {
	


		
		@Test
		public void testName() throws Exception {
			String str="13afe";
			int sun=0;
			int len=str.length();
			for(int i=0;i<len;i++){
				char charAt = str.charAt(len-i-1);
				
				int n = Character.digit(charAt,16);
				sun+=n * (1<<(4*i));
			}
			System.out.println(sun);
			
		}

	


}
